import request from "@/config/request.js";

//微信
export function wxLogin(data) {
	return request({
		url: '/api/front/loginWeiXinXcx',
		method: 'POST',
		data: data,
		ignoreToken: true
	})
}

//微信授权
export function wxLoginAuthorization(data) {
	return request({
		url: '/api/front/loginWeixinXcxNotPhone',
		method: 'POST',
		data: data,
		ignoreToken: true
	})
}


//验证码
export function mobilecode(data) {
	return request({
		url: '/api/front/sendCode',
		method: 'GET',
		data,
		ignoreToken: true
	})
}

//手机号
export function mobileLogin(data) {
	return request({
		url: '/api/front/login/mobile',
		method: 'POST',
		data,
		ignoreToken: true
	})
}
//获取手机号信息
export function wxUserPhone(data) {
	return request({
		url: '/api/front/wechat/authorize/userPhone',
		method: 'GET',
		data: data,
		ignoreToken: true,
	})
}